package cn.wolfcode.crm.service.impl;

import cn.wolfcode.crm.domain.Dictionary;
import cn.wolfcode.crm.mapper.DictionaryMapper;
import cn.wolfcode.crm.service.IDictionaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DictionaryServiceImpl implements IDictionaryService {
    @Autowired
    DictionaryMapper dictionaryMapper;

    public int deleteByPrimaryKey(Long id) {
        return dictionaryMapper.deleteByPrimaryKey(id);
    }

    public int insert(Dictionary record) {
        return dictionaryMapper.insert(record);
    }

    public Dictionary selectByPrimaryKey(Long id) {
        return dictionaryMapper.selectByPrimaryKey(id);
    }

    public List<Dictionary> selectAll() {
        return dictionaryMapper.selectAll();
    }

    public int updateByPrimaryKey(Dictionary record) {
        return dictionaryMapper.updateByPrimaryKey(record);
    }
}
